Skip to content

feat(ff-ai): add Effect wrappers for AI SDK#60

Merged
fdarian merged 5 commits intomainfrom
ff-70-ff-effectforai
Feb 26, 2026
Merged

feat(ff-ai): add Effect wrappers for AI SDK#60
fdarian merged 5 commits intomainfrom
ff-70-ff-effectforai

Conversation

@fdarian
Copy link
Copy Markdown
Owner

@fdarian fdarian commented Feb 26, 2026

Summary

  • Add Effect wrappers for AI SDK's generateText, streamText, and tool functions to provide seamless integration with the Effect runtime
  • Wrappers properly handle async operations, streaming, and Effects-based services
  • Include comprehensive documentation with examples for basic usage, streaming, tools with Effect services, and error handling
  • Add tests covering all three wrapper functions and various use cases

Test plan

  • Tests in packages/effect/src/for/ai/index.test.ts cover:
    • Basic generateText functionality
    • generateText with onFinish callback
    • Basic streamText with streaming consumption
    • tool wrapper with Effect service integration
    • Error handling with AiError
  • All examples in the documentation (packages/effect/docs/for/ai.md) are accurate and runnable
  • Package dependencies are correctly added (@ai-sdk/core as peer and dev dependency)

@fdarian fdarian changed the title feat: add Effect wrappers for AI SDK feat(ff-ai): add Effect wrappers for AI SDK Feb 26, 2026
@fdarian fdarian merged commit 07f01cc into main Feb 26, 2026
3 checks passed
@fdarian fdarian deleted the ff-70-ff-effectforai branch February 26, 2026 18:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant